package com.frogs.ucenter.service.daoimpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.WechatUserPhoneDao;
import com.frogs.ucenter.entity.WechatUserPhone;
import com.frogs.ucenter.service.WechatUserPhoneService;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("wechatUserPhoneService")
public class WechatUserPhoneServiceImpl extends BaseServiceImpl<WechatUserPhone> implements WechatUserPhoneService {
    @Autowired
    private WechatUserPhoneDao wechatUserPhoneDao;

    public WechatUserPhoneServiceImpl() {
        super();
    }

    public WechatUserPhoneDao getWechatUserPhoneDao() {
        return wechatUserPhoneDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<WechatUserPhone> getBaseDao() {
        return wechatUserPhoneDao;
    }

    public void setWechatUserPhoneDao(WechatUserPhoneDao wechatUserPhoneDao) {
        this.wechatUserPhoneDao = wechatUserPhoneDao;
    }
}